package accountManagementNew.common.pojo;

import accountManagementNew.common.enums.IsCreateTypeEnum;
import accountManagementNew.common.enums.UserStatusEnum;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author lihonbin
 * @since 2025-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("email")
    private String email;

    @TableField("phone")
    private String phone;

    @TableField("nickname")
    private String nickname;

    @TableField("gender")
    private Integer gender;

    @TableField("avatar_url")
    private String avatarUrl;

    @TableField("status")
    private UserStatusEnum status;

    @TableField("is_create_type")
    private IsCreateTypeEnum isCreateType;

    @TableField("register_time")
    private LocalDateTime registerTime;

    @TableField("last_login")
    private LocalDateTime lastLogin;

    @TableField("cancel_time")
    private LocalDateTime cancelTime;


}
